<html><head><title>ComposeXML</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">ComposeXML()</font></b></p>
<p><b>Syntax</b></p><blockquote>
Result$ = <font color="#006666"><b>ComposeXML</b></font>(#XML [, Flags])</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Returns the XML tree as markup in a single string. The XML will be returned in the 
string format of the executable (Ascii or Unicode) independent of the setting returned 
by <a href="getxmlencoding.html">GetXMLEncoding()</a>. The <a href="exportxml.html">ExportXML()</a> function can be used to create markup in a different 
encoding. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>#XML</i></td>
<td width="90%"> 
The XML to export. 

</td></tr>
<tr><td><i>Flags (optional)</i></td>
<td> 
It can be a combination of the following values (with the '|' operator): 
<pre><font face="Courier New, Courier, mono"size="2">  <font color="#924B72">#PB_XML_StringFormat</font> : Includes a byte order mark. See <a href="../file/writestringformat.html">WriteStringFormat()</a> for more information.
  <font color="#924B72">#PB_XML_NoDeclaration</font>: Does not include the XML declaration.
</font></pre>
Note: According to the XML specification, the XML declaration can only be omitted if the 
document is encoded in UTF-8 or UTF-16 or if the encoding information is provided externally through 
a transfer protocol for example. Even then, it is advised to keep the declaration in the document. 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>

Returns the markup as a string. 

</blockquote><p><b>Remarks</b></p><blockquote>

The created XML markup is not reformatted. It is returned as it was initially parsed/created. The 
amount of newline/whitespace written between the tags is stored in the 'text' of each XML node. (see 
<a href="getxmlnodetext.html">GetXMLNodeText()</a> for more information) 
To reformat the XML markup before saving, the 'text' for each XML node can be altered or 
<a href="formatxml.html">FormatXML()</a> can be used to apply some common reformatting options to the tree. 

</blockquote><p><b>See Also</b></p><blockquote>

<a href="formatxml.html">FormatXML()</a>, <a href="exportxml.html">ExportXML()</a>, <a href="savexml.html">SaveXML()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=childxmlnode.html>ChildXMLNode()</a> - <a href=index.html>XML Index</a> - <a href=copyxmlnode.html>CopyXMLNode()</a> ->

</body></html>